DateTime.Now.StringMonth([Culture])
.StringMonth([Culture]) property converts the month portion of the DateTime object into a string and returns it. If the optional Culture parameter is filled in, the string will be for the language and culture specified. If this is left blank, .StringMonth([Culture]) will use your server's culture setting.
Applies To
- Convert.ToDateTime(Convert)
- DateTime.Now
- DateTime.Today
- Event.Form.MainGrid.Results.AddRow([IDColumn]).GetDateTime(Column)
- Event.Form.MainGrid.Results.GetMaximumDateTime(ColName)
- Event.Form.MainGrid.Results.GetMinimumDateTime(ColName)
- Event.Form.MainGrid.Results.GetRow(X).GetDateTime(Column)
- Event.Form.MainGrid.SelectedRow.GetDateTime(Column)
- Event.Form.Parent.MainGrid.Results.AddRow([IDColumn]).GetDateTime(Column)
- Event.Form.Parent.MainGrid.Results.GetMaximumDateTime(ColName)
- Event.Form.Parent.MainGrid.Results.GetMinimumDateTime(ColName)
- Event.Form.Parent.MainGrid.Results.GetRow(X).GetDateTime(Column)
- Event.Form.Parent.MainGrid.SelectedRow.GetDateTime(Column)
- Event.Form.Parent.GetDataTable([TableName]).AddRow([IDColumn]).GetDateTime(Column)
- Event.Form.Parent.GetDataTable([TableName]).GetMaximumDateTime(ColName)
- Event.Form.Parent.GetDataTable([TableName]).GetMinimumDateTime(ColName)
- Event.Form.Parent.GetDataTable([TableName]).GetRow(X).GetDateTime(Column)
- Event.Form.Parent.Grids(FID).Results.AddRow([IDColumn]).GetDateTime(Column)
- Event.Form.Parent.Grids(FID).Results.GetMaximumDateTime(ColName)
- Event.Form.Parent.Grids(FID).Results.GetMinimumDateTime(ColName)
- Event.Form.Parent.Grids(FID).Results.GetRow(X).GetDateTime(Column)
- Event.Form.Parent.Grids(FID).SelectedRow.GetDateTime(Column)
- Event.Form.GetDataTable([TableName]).AddRow([IDColumn]).GetDateTime(Column)
- Event.Form.GetDataTable([TableName]).GetMaximumDateTime(ColName)
- Event.Form.GetDataTable([TableName]).GetMinimumDateTime(ColName)
- Event.Form.GetDataTable([TableName]).GetRow(X).GetDateTime(Column)
- Event.Form.Grids(FID).Results.AddRow([IDColumn]).GetDateTime(Column)
- Event.Form.Grids(FID).Results.GetMaximumDateTime(ColName)
- Event.Form.Grids(FID).Results.GetMinimumDateTime(ColName)
- Event.Form.Grids(FID).Results.GetRow(X).GetDateTime(Column)
- Event.Form.Grids(FID).SelectedRow.GetDateTime(Column)
- Inventory.LotExplosion(Lots[, View, EndDate, NegativeLots, ByProducts]).AddRow([IDColumn]).GetDateTime(Column)
- Inventory.LotExplosion(Lots[, View, EndDate, NegativeLots, ByProducts]).GetMaximumDateTime(ColName)
- Inventory.LotExplosion(Lots[, View, EndDate, NegativeLots, ByProducts]).GetMinimumDateTime(ColName)
- Inventory.LotExplosion(Lots[, View, EndDate, NegativeLots, ByProducts]).GetRow(X).GetDateTime(Column)
- InventoryLot.ExpirationDate
- InventoryLot.LotDate
- Parameters.Results.AddRow([IDColumn]).GetDateTime(Column)
- Parameters.Results.GetMaximumDateTime(ColName)
- Parameters.Results.GetMinimumDateTime(ColName)
- Parameters.Results.GetRow(X).GetDateTime(Column)
- Query.GetDateTime(Query[, IsNull])
- Query.GetTable(Query).AddRow([IDColumn]).GetDateTime(Column)
- Query.GetTable(Query).GetMaximumDateTime(ColName)
- Query.GetTable(Query).GetMinimumDateTime(ColName)
- Query.GetTable(Query).GetRow(X).GetDateTime(Column)
- Script.GetDataTable(TableName).AddRow([IDColumn]).GetDateTime(Column)
- Script.GetDataTable(TableName).GetMaximumDateTime(ColName)
- Script.GetDataTable(TableName).GetMinimumDateTime(ColName)
- Script.GetDataTable(TableName).GetRow(X).GetDateTime(Column)
Properties and Methods
None
Available
The .StringMonth([Culture]) method is available in:
- 15.03.117
- 15.04.111
- 15.05.116
- 16.00.146
- 16.01.098
- 16.02.124
- 16.03.067
- 16.04.089
- 16.05.102
- 16.06.039
- 16.07.028
- 17.00.009
- All newer builds
Type
String
Syntax
DateTime.Now.StringMonth([Culture]);
Parameters
|
Parameter |
Required |
Description |
|---|---|---|
|
Culture |
No |
A string that represents the language and country to set the culture. The format is ll-CC, where ll represents the language and CC represents the Country. A list of available cultures can be found here. |
Example
var lcDay = DateTime.Today.StringMonth();
var lcDayFR = DateTime.Today.StringMonth('fr-FR');
Event.Form.MessageBox('Default (en-US): ' + lcDay +
'\nFrench (fr-FR): ' + lcDayFR);
/* Expected Prompt response:
Default (en-US): October
French (fr-FR): octobre
*/